package com.atom.module.lib.opengles

import com.atom.module.lib.opengles.geometry.Vec3
import org.junit.Test

class Vec3Test {

    @Test
    fun `Vec3 fun crate`() {
        val point1 = Vec3(1.0, 0.0, 2.0)
        val point2 = Vec3(1.0, 0.0, 0.0)
        println("$point1 dot $point2 = ${Math.toDegrees(Math.acos(point1.dot(point2) / (point1.magnitude() * point2.magnitude())))}")
        println("$point1 dot $point2 = ${point1.dot(point2)}")
    }
}